<style>
    @media ( min-width: 992px) {
        .modal-blg {
            width: 95%;
        }
    }
</style>
<div class="modal-content">
    <div class="modal-header">
        <button class="close" ng-click="cancel()" type="button">
            <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
        </button>
        <h4 class="modal-title">实体信息变更</h4>
    </div>
    <div class="modal-body">
        <div class="wrapper wrapper-content animated fadeInRight">
            <form class="form-inline" role="form">
                <button class="btn btn-sm btn-primary" ng-click="selectall()"
                        type="submit">全选
                </button>
                <button class="btn btn-sm btn-primary" ng-click="selectnall()"
                        type="submit">全不选
                </button>
            </form>
            <form action="" class="form-horizontal m-t-md" name="myForm"
                  novalidate>
                <div class="form-group">
                    <label class="col-sm-2 control-label">处理人:</label>
                    <div class="col-sm-10">
                        <select ng-disabled="ctl.processuser" chosen class="chosen-select"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="adminuserSel"
                                ng-options="item.name for item in adminuserOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">备注:</label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.mark"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                       <span style="margin-right:5px"><span
                                               style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tclassidstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">资产类别:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="classSel"
                                ng-options="item.name for item in classOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                       <span style="margin-right:5px"><span
                                               style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tnamestatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right">    <span style="font-weight:bold"><span
                                        class="text-danger">*</span>资产名称:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control ng-pristine ng-untouched ng-valid ng-empty" name="tname"
                               ng-maxlength="100"
                               ng-model="item.tname"
                               placeholder="请输入名称" type="text">
                        <div class="text-danger"
                             ng-if="myForm.tname.$dirty && myForm.tname.$invalid">
                            <span ng-if="myForm.tname.$error.required"> 输入不能为空 </span> <span
                                ng-show="myForm.tname.$error.maxlength">不能超过100个字符 </span>
                        </div>
                    </div>
                </div>


                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                       <span style="margin-right:5px"><span
                                               style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tmodelstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right">    <span style="font-weight:bold"><span
                                        class="text-danger">*</span>规格型号:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control ng-pristine ng-untouched ng-valid ng-empty" name="tmodel"
                               ng-maxlength="100"
                               ng-model="item.tmodel"
                               placeholder="请输入名称" type="text">
                        <div class="text-danger"
                             ng-if="myForm.tmodel.$dirty && myForm.tmodel.$invalid">
                            <span ng-if="myForm.tmodel.$error.required"> 输入不能为空 </span> <span
                                ng-show="myForm.tmodel.$error.maxlength">不能超过100个字符 </span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                      <span style="margin-right:5px"><span
                                              style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tsupplierstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span
                                        style="padding-left:11px;font-weight:bold">供应商:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="supplierSel"
                                ng-options="item.name for item in supplierOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                      <span style="margin-right:5px"><span
                                              style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tbrandstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">品牌:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="brandSel"
                                ng-options="item.name for item in brandOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                        <span style="margin-right:5px"><span
                                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tsnstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">序列:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tsn"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                        <span style="margin-right:5px"><span
                                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tfs20status"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">其他编号:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tfs20"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                       <span style="margin-right:5px"><span
                                               style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tunitstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">计量单位:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tunit"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                         <span style="margin-right:5px"><span
                                                 style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tzccntstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">数量:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control " ng-init="item.tzccnt=1"
                               ng-model="item.tzccnt" placeholder="请输入内容"
                               type="number">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                          <span style="margin-right:5px"><span
                                                  style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tusefullifestatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">使用期限:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="true"
                                ng-model="usefullifeSel"
                                ng-options="item.name for item in usefullifeOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                                           <span style="margin-right:5px"><span
                                                   style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tzcsourcestatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">来源:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="zcsourceSel"
                                ng-options="item.name for item in zcsourceOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">


                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tlocstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">区域:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="locSel"
                                ng-options="item.name for item in locOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tlocdtlstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">位置:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tlocdtl"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tfd1status"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">生产日期:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input auto-close="true" class="form-control" date-change="datachange"
                               date-time format="YYYY-MM-DD"
                               min-view="date" ng-model="date.fd1time" time-zone="Asia/Hong_Kong"
                               type="datetime" view="year">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tbuytimestatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">采购日期:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input auto-close="true" class="form-control" date-change="datachange"
                               date-time format="YYYY-MM-DD"
                               min-view="date" ng-model="date.buytime" time-zone="Asia/Hong_Kong"
                               type="datetime" view="year">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">

                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tconfdescstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">配置描述:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tconfdesc"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">

                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tmarkstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">备注:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tmark"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tlabel1status"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span style="font-weight:bold">标签1:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <input class="form-control "
                               ng-model="item.tlabel1"
                               placeholder="请输入内容" type="text">
                    </div>
                </div>

<!--                <div class="form-group">-->
<!--                    <label class="col-sm-2 control-label">-->
<!--                        <table style="width:100%">-->
<!--                            <tr>-->
<!--                                <td style="text-align: left">-->
<!--                       <span style="margin-right:5px"><span-->
<!--                               style="font-weight:bold;color:green;margin-right:2px">是否更新</span>-->
<!--                        <input icheck ng-model="item.tusedcompanyidstatus"-->
<!--                               type="checkbox"></span>-->
<!--                                </td>-->
<!--                                <td style="text-align: right"><span-->
<!--                                        style="font-weight:bold">{{'USEDCOMP' | translate}}:</span></td>-->
<!--                        </table>-->
<!--                    </label>-->
<!--                    <div class="col-sm-10">-->
<!--                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"-->
<!--                                data-placeholder-text-single="'请选择...'"-->
<!--                                disable-search="false"-->
<!--                                search_contains="true"-->
<!--                                ng-model="usedcompSel"-->
<!--                                ng-options="item.name for item in usedcompOpt"-->
<!--                                no-results-text="'没有找到相应条目'">-->
<!--                            <option value=""></option>-->
<!--                        </select>-->
<!--                    </div>-->
<!--                </div>-->
<!--                -->

                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">

                           <span style="margin-right:5px"><span
                                   style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tpartidstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span
                                        style="font-weight:bold">{{'USEDPART' | translate}}:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="usedpartSel"
                                ng-options="item.name for item in usedpartOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">
                        <table style="width:100%">
                            <tr>
                                <td style="text-align: left">
                        <span style="margin-right:5px"><span
                                style="font-weight:bold;color:green;margin-right:2px">是否更新</span>
                        <input icheck ng-model="item.tuseduseridstatus"
                               type="checkbox"></span>
                                </td>
                                <td style="text-align: right"><span
                                        style="font-weight:bold">{{'USEDUSER' | translate}}:</span></td>
                        </table>
                    </label>
                    <div class="col-sm-10">
                        <select chosen class="chosen-select" data-placeholder-text-multiple="'请选择...'"
                                data-placeholder-text-single="'请选择...'"
                                disable-search="false"
                                search_contains="true"
                                ng-model="useduserSel"
                                ng-options="item.name for item in useduserOpt"
                                no-results-text="'没有找到相应条目'">
                            <option value=""></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
						<span class="btn btn-primary"
                              ng-click="review()">资产选择范围</span>
                        <table class="table table-hover" datatable="ed"
                               dt-column-defs="dtColumnDefs" dt-columns="dtColumns"
                               dt-instance="dtInstance" dt-options="dtOptions">
                        </table>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="modal-footer" style="text-align:center">
        <button class="btn btn-warning" ng-click="cancel()">取消</button>
        <button class="btn btn-primary" ng-click="sure()" ng-disabled="myForm.$invalid">确认
        </button>
    </div>
</div>